package com.shut.vehicle.service;

import com.shut.vehicle.pojo.ServiceRecord;

import java.util.Date;
import java.util.List;
import java.util.Set;

/**
 * @author 卢斌
 */
public interface BookingRecordService {


    /**
     * 预约拍照
     *
     * @param userId    用户ID
     * @param deviceId  设备ID
     * @param cardId    车牌ID
     */
    void bookingSnapshot(Integer userId, Integer deviceId, Integer cardId);


    List<ServiceRecord> listServiceRecord(Integer userId, Integer deviceId, Boolean hasFinished, Integer pageNum, Integer pageSize);


    void cleanUnFinishedService(Date limitFinishTime);


    /**
     * 所有没有完成的拍照任务加入到缓存中
     */
    void bufferAllUnfinishedService();

}
